<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
require ("db_conn.php");//包含连接文件

$sql="select * from tb_hdimg where isshow=1 order by id desc LIMIT 0 ,4";//取滑动图片
$cprs=$db->query($sql);//执行语句 $rs是一个结果集
$cprows=$cprs->fetch_all(MYSQLI_BOTH);//包括所有行

$sql="select * from tb_hdimg where isshow=1 order by id desc LIMIT  4,12";//isshow=1 取集
$cp1rs=$db->query($sql);//执行语句 $rs是一个结果集
$cp1rows=$cp1rs->fetch_all(MYSQLI_BOTH);//包括所有行
   


require 'ProductDisplay_html.php';
   //释放结果集

   $cprs->free();

   //关闭数据库

   $db->close();

   
